package com.yunxin.customui.bean.condition.select;

import com.yunxin.customui.bean.condition.UIModule;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.LinkedList;

/**
 * 级联下拉框
 */
@Data
public class CascadeBean extends UIModule {




//    /**
//     * 是否取消与子类的关联
//     */
//    Boolean checkStrictly;


    LinkedList<Cascade> value = new LinkedList<>();

    public void addValue(Cascade cascade){
        this.value.add(cascade);
    }




    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Cascade{

        /**
         * 标签描述
         */
        String label;

        String value;

        LinkedList<Cascade> children;

        public Cascade(String label, String value) {
            this.label = label;
            this.value = value;
        }
    }



    public CascadeBean(){

    }

}
